Previous Book Contents Book Index Next

Inside Macintosh: Programming With the Text Encoding Conversion Manager /
Chapter 3 - Text Encoding Converter Reference / Text Encoding Converter Functions
Internet and Regional Text Encoding Names /


TECGetTextEncodingInternetName

Returns the Internet encoding name that corresponds to the specified Mac OS text encoding.

pascal OSStatus TECGetTextEncodingInternetName (
                     TextEncoding textEncoding,
                     Str255 encodingName);
textEncoding
The text encoding specification for the encoding whose Internet encoding name you want to obtain.
encodingName
The Internet encoding name. On return, this holds a character string in 7-bit US ASCII that represents the text encoding specified by the textEncoding parameter.
function result
A result code. See "Text Encoding Conversion Manager Result Codes" (page 42) for a list of possible values.
DISCUSSION
If there are several Internet encoding names for the same text encoding, the function returns the preferred name. This function performs the opposite action of TECGetTextEncodingFromInternetName (page 76).

SEE ALSO
The function GetTextEncodingName (page 52)


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 NOV 1997